<fieldset>
    <legend>条件搜索</legend>
    <form class="layui-form layui-form-pane form-search" id="formSearch" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">渠道类型</label>
            <div class="layui-input-inline">
                <select class="layui-select" name="channel_type" >
                    <option selected value="">- 全部类型 -</option>
                    {foreach $channel_arr as $k=>$v}
                    <!--{eq name='Think.get.channel_type' value='$v.channel_id .""'}-->
                    <option selected value="{$v.channel_id}">{$v.name}</option>
                    <!--{else}-->
                    <option value="{$v.channel_id}">{$v.name}</option>
                    <!--{/eq}-->
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">玩家id</label>
            <div class="layui-input-inline">
                <input name="UserID" value="{$Think.get.UserID|default=''}" placeholder="请输入玩家id" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">玩家昵称</label>
            <div class="layui-input-inline">
                <input name="NickName" value="{$Think.get.NickName|default=''}" placeholder="请输入玩家昵称" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">机器码</label>
            <div class="layui-input-inline">
                <input name="UniqueID" value="{$Think.get.UniqueID|default=''}" placeholder="请输入机器码" class="layui-input" >
            </div>
        </div>
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label">最后登录版本号</label>
            <div class="layui-input-inline">
                <input name="ClientVersion" value="{$Think.get.ClientVersion|default=''}" placeholder="请输入版本号" class="layui-input" >
            </div>
        </div>
        <div class="layui-form-item layui-inline" >
            <label class="layui-form-label">注册时间</label>
            <div class="layui-input-inline">
                <input data-date-range name="reg_time" value="{$Think.get.reg_time|default=$start_time}" placeholder="请选择注册时间" class="layui-input" >
            </div>
        </div>
        <div class="layui-form-item layui-inline" >
            <label class="layui-form-label">最后登录时间</label>
            <div class="layui-input-inline">
                <input data-date-range name="login_time" value="{$Think.get.login_time|default=''}" placeholder="请选择最后登录时间" class="layui-input" >
            </div>
        </div>
        <div class="layui-form-item layui-inline" >
            <label class="layui-form-label">注册IP</label>
            <div class="layui-input-inline">
                <input  name="reg_ip" value="{$Think.get.reg_ip|default=''}" placeholder="请选择注册IP" class="layui-input" >
            </div>
        </div>
        <div class="layui-form-item layui-inline" >
            <label class="layui-form-label">最后登录IP</label>
            <div class="layui-input-inline">
                <input  name="login_ip" value="{$Think.get.login_ip|default=''}" placeholder="请选择最后登录IP" class="layui-input" >
            </div>
        </div>
        <div class="layui-form-item layui-inline" >
            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
            <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
            <button type="button" id="xiazai" class="layui-btn layui-btn-xs" >Excel导出</button>
        </div>
    </form>
    <script>
        window.form.render();
        $('[data-export-list]').on('click', function () {
            window.location.href = '{:url("@")}?s=store/order/index&' + $(this).parents('form').serialize() + '&action=export'
        });
    </script>
</fieldset>
<script type="text/javascript">
    layui.use(['table','layer'], function() {
        var $ = layui.jquery;
        $('#xiazai').click(function(){
            var data =$('#formSearch').serialize();
            window.location.href = "{:url('Excelexport/user')}?"+data;
        })
    });
</script>